﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameEngine;

namespace Board3D.Animation
{
    internal class JumpedFigureAnimation: Animation
    {
        public JumpedFigureAnimation(Position figurePos, TimeSpan animationLength)
            : base(figurePos, animationLength)
        {
        }

        public override float GetFigureAnimationAlpha()
        {
            float delta;
            if (GetAnimationDelta(out delta) == false)
                return 0;

            return 1 - delta;
        }
        
    }
}
